package com.tms.app.tms.bean;

import org.xutils.DbManager;
import org.xutils.db.annotation.Column;
import org.xutils.ex.DbException;

/**
 * Created by Administrator on 2017/11/30 0030.
 */

public class Node {

    @Column(
            name = "ID",
            isId = true,
            autoGen = true
    )
    int id;
    @Column(name = "showType" )
    private int showType;
    @Column(name = "stationExecId" )
    private int stationExecId;
    @Column(name = "planTime" )
    private long planTime;
    @Column(name = "busiType" )
    private int busiType=-1;
    @Column(name = "doTypeName" )
    private String doTypeName="";//": "装货",
    @Column(name = "stationName" )
    private String stationName="";
    @Column(name = "doType" )
    private int doType;
    @Column(name = "stationAddress" )
    private String stationAddress="";
    @Column(name = "waybillNo" )
    private String waybillNo="";
    @Column(name = "status" )
    private int status;
    @Column(name = "planIdShowType" )
    private int planIdShowType=-1;
    private String gate_latitude;
    private String gate_longitude;

    private int taskId;
    public TaskData getUser(DbManager db) throws DbException {
        return db.findById(TaskData.class, taskId);
    }

    public long getPlanTime() {
        return planTime;
    }

    public void setPlanTime(long planTime) {
        this.planTime = planTime;
    }

    public int getBusiType() {
        return busiType;
    }

    public void setBusiType(int busiType) {
        this.busiType = busiType;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public int getDoType() {
        return doType;
    }

    public void setDoType(int doType) {
        this.doType = doType;
    }

    public String getStationAddress() {
        return stationAddress;
    }

    public void setStationAddress(String stationAddress) {
        this.stationAddress = stationAddress;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStationExecId() {
        return stationExecId;
    }

    public void setStationExecId(int stationExecId) {
        this.stationExecId = stationExecId;
    }

    public String getDoTypeName() {
        return doTypeName;
    }

    public void setDoTypeName(String doTypeName) {
        this.doTypeName = doTypeName;
    }

    public int getShowType() {
        return showType;
    }

    public void setShowType(int showType) {
        this.showType = showType;
    }

    public int getPlanIdShowType() {
        return planIdShowType;
    }

    public void setPlanIdShowType(int planIdShowType) {
        this.planIdShowType = planIdShowType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTaskId() {
        return taskId;
    }

    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }


    public String getGate_latitude() {
        return gate_latitude;
    }

    public void setGate_latitude(String gate_latitude) {
        this.gate_latitude = gate_latitude;
    }

    public String getGate_longitude() {
        return gate_longitude;
    }

    public void setGate_longitude(String gate_longitude) {
        this.gate_longitude = gate_longitude;
    }
}
